package com.homework.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("homework_record")
public class HomeworkRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("homework_id")
    private Long homeworkId;

    @TableField("detail_id")
    private Long detailId;

    @TableField("completion_time")
    private LocalDateTime completionTime;

    @TableField("time_consumed")
    private Integer timeConsumed; // 耗时(分钟)

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}